package com.zan.springcloud.service.impl;

import com.zan.springcloud.entity.Payment;
import com.zan.springcloud.mapper.PaymentMapper;
import com.zan.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author Zan
 * @Create 2023/12/6 20:43
 * @Description :
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentMapper paymentMapper;

    @Override
    public int createPayment(Payment payment) {
        return paymentMapper.createPayment(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
